package org.jeecg.modules.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.base.po.EntityBase;
import org.jeecgframework.poi.excel.annotation.Excel;

/**
 * @Description: 公司地址
 * @Author: jeecg-boot
 * @Date: 2020-05-22
 * @Version: V1.0
 */
@Data
@TableName("xb_address")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "xb_address对象", description = "地址")
public class Address extends EntityBase {

    /**
     * 公司地址
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "公司地址")
    private Integer id;

    @Excel(name = "类型", width = 15)
    @ApiModelProperty(value = "公司1，代理商2,消费者3")
    private Integer ownerType;

    @Excel(name = "所属id", width = 15)
    @ApiModelProperty(value = "所属id")
    private Integer ownerId;

    /**
     * 归属省id
     */
    @Excel(name = "归属省id", width = 15)
    @ApiModelProperty(value = "归属省id")
    private Integer provinceId;
    /**
     * 城市id
     */
    @Excel(name = "城市id", width = 15)
    @ApiModelProperty(value = "城市id")
    private Integer cityId;
    @Excel(name = "城市id", width = 15)
    @ApiModelProperty(value = "区域id")
    private Integer areaId;
    /**
     * 完整地址
     */
    @Excel(name = "完整地址", width = 15)
    @ApiModelProperty(value = "完整地址")
    private String pullAddress;
}
